package com.softlook.mt.server.db.dto;

import java.lang.Integer;
import java.lang.String;
import java.util.List;
import java.util.LinkedList;
import java.lang.Object;

public class Event {
	private Integer eventid;
	private String name;
	private List eventidDeviceeventRefList = new LinkedList();
	public Integer getEventid() {
		return this.eventid;
	}
	public void setEventid(Integer eventid) {
		this.eventid = eventid;
	}
	public String getName() {
		return this.name;
	}
	public void setName(String name) {
		this.name = name;
	}
	public static boolean hasColumn(String column) {
		if(column.toUpperCase().equals("eventid".toUpperCase())){
		   return true;
		}
		if(column.toUpperCase().equals("name".toUpperCase())){
		   return true;
		}
		return false;
	}
	public boolean equals(Object object) {
		if(!(object instanceof Event)){
			return false;
		}
		
		Event table = (Event)object;
		if(this.eventid == null &&  table.eventid != null){
		   return false;
		}
		if(this.eventid != null &&  table.eventid == null){
		   return false;
		}
		if(this.eventid != null && !this.eventid.equals(table.eventid)){
		   return false;
		}
		if(this.name == null &&  table.name != null){
		   return false;
		}
		if(this.name != null &&  table.name == null){
		   return false;
		}
		if(this.name != null && !this.name.equals(table.name)){
		   return false;
		}
		return true;
	}
	public List getEventidDeviceeventRefList() {
		return this.eventidDeviceeventRefList;
	}
	public void setEventidDeviceeventRefList(List eventidDeviceeventRefList) {
		this.eventidDeviceeventRefList = eventidDeviceeventRefList;
	}
}
